home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / kernel / sprite / InstallDefault < prev    next >
Encoding:
Text File  |  1989-08-25  |  1.1 KB  |  47 lines

  1. #!/bin/csh -f
  2. #
  3. # InstallDefault
  4. #    This script installs default kernels from existing .new versions.
  5. #    No compliation is done here;  it is assumed that the .new
  6. #    kernels have been run on live machines before this script is run.
  7. #
  8.  
  9. echo -n "OLD: "
  10. strings /sprite/boot/sun3.md/sprite | egrep VERSION
  11. echo -n "NEW: "
  12. strings /sprite/boot/sun3.md/sprite.new | egrep VERSION
  13.  
  14. set error = "no"
  15.  
  16. foreach tm (sun3 sun4 ds3100)
  17.  
  18.     if (! -e /sprite/boot/$tm.md/sprite.new) then
  19.     set error = "yes"
  20.     echo "/sprite/boot/$tm.md/sprite.new" not found
  21.     endif
  22. end
  23.  
  24. if ($error == "yes") exit 1
  25.  
  26. foreach tm (sun3 sun4 ds3100)
  27.  
  28.     if (-e /sprite/boot/$tm.md/sprite) then
  29.     mv /sprite/boot/$tm.md/sprite /sprite/boot/$tm.md/sprite.old
  30.     endif
  31.  
  32.     echo "Installing default kernel in /sprite/boot/$tm.md"
  33.     mv /sprite/boot/$tm.md/sprite.new /sprite/boot/$tm.md/sprite
  34. end
  35.  
  36. #
  37. # Do a parallel move over on ginger to support (0,961c,XX) boots for sun3's
  38. #
  39. set echo
  40. rsh ginger mv -f /sprite3/sun3 /sprite3/sun3.old
  41. rsh ginger mv -f /sprite3/sun3.new /sprite3/sun3
  42.  
  43. #
  44. # Do not mess with /vmunix, this is what mint boots from its
  45. # local disk, and that is usually sun3.new
  46. #
  47.